import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏西西
 * Date: 2023-06-25
 * Time: 10:56
 */
// s1"welcome to bit"
//s2"come"
    //要求：删掉s1中s2出现的字母
public class Test_1 {
    public List<List<Integer>> generate(int numRows){
        List<List<Integer>> ret = new ArrayList<>();

        List<Integer> row = new ArrayList<>();
        row.add(1);
        ret.add(row);

        for (int i = 1; i <numRows ; i++) {
            List<Integer> prevRow = ret.get(i-1);
            List<Integer> curRow = new ArrayList<>();
            curRow.add(1);//第一个1
            //中间的curRow  list的值
            for (int j = 1; j < i-1 ; j++) {
                int x = prevRow.get(j)+ prevRow.get(j-1);
                curRow.add(x);
            }

            curRow.add(1);//最后一个1
            ret.add(curRow);
        }
        return ret;
    }




    public static void main(String[] args) {
        ArrayList<Character> list = new ArrayList<>();
        String s1 = "welcome to bit";
        String s2 = "come";
        for (int i = 0; i < s1.length(); i++) {
            char ch = s1.charAt(i);
            if(!s2.contains(ch+"")){
                list.add(ch);
            }
        }
        for (int i = 0; i < list.size(); i++) {
            System.out.print(list.get(i));
        }
    }


}
